﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbstractFactoryPattern
{
    public class FactoryProducer
    {
        public static AbstractFactory GetFactory(FactoryType type)
        {
            if (type == FactoryType.Color)
            {
                return new ColorFactory();
            }
            else if (type == FactoryType.Shape)
            {
                return new ShapeFactory();
            }

            return null;
        }
    }
}
